package com.student.dong.service.impl;

import com.student.dong.entity.AlgsEvaluate;
import com.student.dong.mapper.AlgsEvaluateMapper;
import com.student.dong.service.IEvaluateService;
import com.student.dong.vo.CurriculaVaribleVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Program: animalSystem->IEvaluateServiceImpl
 * @Description:
 * @Author: donghang
 * @Date: 2023-03-23 15:09
 * @Version： 1.0
 **/
@Service
public class IEvaluateServiceImpl implements IEvaluateService {

    @Autowired
    private AlgsEvaluateMapper evaluateMapper;

    @Override
    public int deleteByPrimaryKey(Long id) {
        return evaluateMapper.deleteByPrimaryKey(id);
    }

    @Override
    public int insert(AlgsEvaluate record) {
        return evaluateMapper.insert(record);
    }

    @Override
    public int insertSelective(AlgsEvaluate record) {
        return evaluateMapper.insertSelective(record);
    }

    @Override
    public AlgsEvaluate selKey(Long studentId, Long teacherId, Long curriculaVaribleId) {
        return evaluateMapper.selKey(studentId, teacherId, curriculaVaribleId);
    }

    @Override
    public AlgsEvaluate selectByPrimaryKey(Long id) {
        return evaluateMapper.selectByPrimaryKey(id);
    }

    @Override
    public List<CurriculaVaribleVo> selHomeWork(Long userId) {
        return evaluateMapper.selHomeWork(userId);
    }

    @Override
    public CurriculaVaribleVo selOne(Long curriculaVaribleId, Long studentId) {
        return evaluateMapper.selOne(curriculaVaribleId, studentId);
    }

    @Override
    public int updateByPrimaryKeySelective(AlgsEvaluate record) {
        return evaluateMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(AlgsEvaluate record) {
        return evaluateMapper.updateByPrimaryKey(record);
    }

    @Override
    public AlgsEvaluate selectByStudentId(Integer studentId, Long curriculaVaribleId) {
        return evaluateMapper.selectByStudentId(studentId,curriculaVaribleId);
    }

}
